export interface RoyaltyRateDto {
  id: number
  salesId: number
  productType: string
  royaltyRate: number
  remark: string
  createTime: number
  updateTime: number
  createUser: number
  updateUser: number
  isDelete: number
  startTime: null
  endTime: null
  productName: string
  userId: null
  params: RoyaltyRateParamsDto
}

export interface RoyaltyRateParamsDto {
  pay: RoyaltyRateParamPayDto,
  ele: RoyaltyRateParamsEleDto,
  wesure: RoyaltyRateParamsWesureDto,
  period: RoyaltyRateParamsPeriodDto
}

export interface RoyaltyRateParamPayDto {
  firstAmount: number
  openAccountAmount: number
  renewalAmount: number
  saleTotalMoney: number
  salesNumber: number
  customer: number
  deal: number
  amount: number
}

export interface RoyaltyRateParamsEleDto {
    customer: number
    eleCount: number
    eleRechargeCount: number
    rechargeAmount: number
    rechargeCopies: number
    openCustomer: null
}

export interface RoyaltyRateParamsWesureDto {
    amount: number
    customer: number
    wesureFrequency: number
    policyPeopleCount: number
    recordCount: number
}

export interface RoyaltyRateParamsPeriodDto {
  addCount: number
  customer: number
  premium: number
  periodPremiumCount: number
  rebateAmountCount: number
  achievementAmount: number
  todayInsure: null
  yesterdayInsure: null
  thisMonthOpen: null
  lastMonthOpen: null
  todayReport: null
}

export interface StaffIdcardWhiteItem {
    idCard: string
    name: string
    sex: string | null
    address: string | null
    birthday: string | null
}